<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
let obj = {username: 'zs', age: 20, data: {data: {results: [1,2,3 ], pre_timestamp: 1234}}}
//es5
/*
let username = obj.username
let age = obj.age
*/
//es6
// 多层解构通过: {}
let {username, age, data: {data: {results, pre_timestamp: timestamp}}} = obj 
// 取别名通过:
// console.log(results)
console.log(timestamp)
</script>
</html>